package com.matt.repository.base;

import com.matt.foundation.query.LeadsHistoryQuery;
import com.matt.foundation.vo.LeadsHistoryVo;

import java.util.List;

/**
 * ******************
 * Created by Ron
 * from com.matt
 * on 2018/6/26 0026.
 * *******************
 */
public interface LeadsHistoryNativeRepository {

    List<LeadsHistoryVo> findByLeadsIdAndType(String leadsId, String type, LeadsHistoryQuery leadsHistoryQuery);

    Long count(String leadsId,String type, LeadsHistoryQuery leadsHistoryQuery);

    List<LeadsHistoryVo> findByClienteledIdAndType(String clientelesId, String type, LeadsHistoryQuery leadsHistoryQuery);

    Long countByClienteleId(String clientelesId, String type, LeadsHistoryQuery leadsHistoryQuery);

    List<LeadsHistoryVo> findAll(String leadsId, LeadsHistoryQuery leadsHistoryQuery);

    Long countAll(String leadsId, LeadsHistoryQuery leadsHistoryQuery);


    List<LeadsHistoryVo> findByVisit(String leadsId, String type, LeadsHistoryQuery leadsHistoryQuery);

    Long visitcount(String leadsId,String type, LeadsHistoryQuery leadsHistoryQuery);


    List<LeadsHistoryVo> findByPallet(String leadsId, String type, LeadsHistoryQuery leadsHistoryQuery);

    Long palletcount(String leadsId,String type, LeadsHistoryQuery leadsHistoryQuery);
}
